#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <conio.h>

void main ()
{
	char string[1000];
	char stralphabet[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
	char stralphabetMal[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
	int massiv[26], massivMal[26], i;
	gets(string);	

	for (i=0;i<27;i++)
	{
		massiv[i] = 0;
		massivMal[i] = 0;
	}

	for (i=0; i<strlen(string); i++)
	{
		if (string[i]>=0x61 && string[i]<=0x7A )
			massivMal[string[i]-'a']++;
		else
			massiv[string[i]-'A']++;
	}

	for (i=0; i<27;i++)
	{
		printf ("%c  %d raz \n",stralphabet[i], massiv[i]);
		printf ("%c  %d raz \n",stralphabetMal[i], massivMal[i]);
	}
	system("pause");
}